package com.foxmail.aroundme.boring.module.splash.ui;

import android.content.Intent;

import com.foxmail.aroundme.boring.R;
import com.foxmail.aroundme.boring.annotation.ActivityFragmentInject;
import com.foxmail.aroundme.boring.base.ui.BaseActivity;
import com.foxmail.aroundme.boring.module.news.main.ui.NewsActivity;
import com.foxmail.aroundme.boring.module.splash.presenter.ISplashPre;
import com.foxmail.aroundme.boring.module.splash.presenter.SplashPreImpl;
import com.foxmail.aroundme.boring.module.splash.view.ISplashView;
import com.foxmail.aroundme.boring.utils.m_enum.RefreshType;

/**
 * Created by gzl on 1/15/17.
 *
 */

@ActivityFragmentInject(contentViewId = R.layout.activity_splash, fullScreen = true)
public class SplashActivity extends BaseActivity<ISplashPre> implements ISplashView {

    @Override
    protected void initView() {
        mPresenter = new SplashPreImpl(this);
        mPresenter.initSplash();
    }

    @Override
    protected void initIntentData() {

    }

    @Override
    protected void initListener() {

    }

    @Override
    public void jumpSplash() {
        Intent intent = new Intent(SplashActivity.this, NewsActivity.class);
        showActivity(intent);
        finish();
    }


    @Override
    public void showProgress(@RefreshType.Refresh int type) {

    }

    @Override
    public void hideProgress() {

    }
}
